package graphicView;

import java.util.Observable;

import model.ClassImpl;

public class ActiveClassNotifier extends Observable {
	private ClassImpl activeClass;
	private Boolean relationshipActive;
	public ActiveClassNotifier(){
		activeClass = null;
	}
	public void aRelationshipEndPointIsActive(){
		relationshipActive = true;
		setChanged();		
		notifyObservers(relationshipActive);
	}
	
	public void deactivateRelationship(){
		relationshipActive = false;
		setChanged();
		notifyObservers(relationshipActive);
	}
	public void changeClass(ClassImpl toChange){
		activeClass = toChange;
		setChanged();
		notifyObservers(this.activeClass);
	}
}
